@import com.mgfireworks.mgplatform.mgadmin.user.model.User
@extends("/form_template")
@args Boolean isEdit
@args User user
<div class="x_title">
 <h2>@if(isEdit){修改}else{添加}用户</h2>
 <div class="clearfix"></div>
</div>
<div class="x_content">
@if(isEdit){
   <f_input name="userId" text="用户编号" value="@user.getUserId()" readonly="readonly"></f_input>
}else{
    <input type="hidden" name="userId" value="0"/>
}
   <f_input name="userAccount" text="用户账号" value="@user.getUserAccount()"></f_input>
   <f_input name="userName" text="用户名称" value="@user.getUserName()"></f_input>
   <f_input name="userPwd" text="用户密码" type="password"></f_input>
   <f_chooser name="orgName" text="所属机构" value="@user.getOrgName()" name2="orgId" value2="@user.getOrgId()" url="@url("/sys/org/select.html")"></f_chooser>
   <f_chooser name="roleName" text="用户角色" value="@user.getRoleName()" name2="userRole" value2="@user.getUserRole()" url="@url("/user/role/select.html")"></f_chooser>
</div>